<?php
$Row			= $interfaces_class->GetByName('banner');
$content		= '';
if(is_array($Row)){
	$content	= $Row[0]['content'];
}
$ErrorQ 		= $func->GetSession('admin_fasle');
$func->DelSession('admin_fasle');
?>
<div class="dataTables db">
	<div class="dataTables_bar db">
    	<h5 class="title dib">Banner</h5>        
    </div><!--end dataTables_bar-->
    <div class="themuser db">
        <form class="form-centent" action="<?php echo $WEB_DOMAIN;?>/<?php echo $WEB_ADMIN;?>/index.php?u1=_banner" method="post">
        	<ul class="nd db">
            	<li>
                    <label class="span2 fl">&nbsp;</label>
                    <span class="errorq"><?php if(isset($ErrorQ)){echo $ErrorQ;}?>&nbsp;</span>
                </li>
                <li>
                	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1002" height="150">
                      <param name="movie" value="<?php if(isset($content)){echo $content;}?>">
                      <param name="quality" value="high">
                      <embed src="<?php if(isset($content)){echo $content;}?>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="150">
                    </object>
                </li>  
            	<li>
                    <label class="span2 fl">Banner</label>
                    <input name="content" type="text" class="span4" value="<?php if(isset($content)){echo $content;}?>" id="ImageUrl" >
                    <input type="button" value="<?php echo $config_nc->Library;?>" id="btnSelectImg" name="" />					
                    <script type="text/javascript">
                        $(document).ready(function () {
                            $("#btnSelectImg").click(function () {
                                var finder = new CKFinder();
                                finder.selectActionFunction = function (fileUrl) {
                                    $('#ImageUrl').val(fileUrl);
                                };
                                finder.popup();
                            });
                        });
                     </script>
                </li>                
            </ul>
            <div class="form-actions db">      
            	<button type="submit"><?php echo $config_nc->Accept;?></button>    
            </div><!--end form-actions-->
        </form>
    </div>
</div><!--end dataTables-->